#ifndef  __ZeroThread_H__
#define  __ZeroThread_H__

#define ZTHR_PTHREAD

#if defined(ZTHR_PTHREAD)
#include <pthread.h>
#elif defined(ZTHRE_WIN32)
#endif

#if defined(ZTHR_PTHREAD)
#elif defined(ZTHRE_WIN32)
#endif

class ZeroThread {
public:
	typedef void* FuncPtr_t (void*);
	ZeroThread(FuncPtr_t fptr, void* data);
	~ZeroThread();

	bool cancel();
	bool join();
private:
#if defined(ZTHR_PTHREAD)
	pthread_t mTid;
#elif defined(ZTHR_WIN32)
#endif
};

#endif /*__ZeroThread_H__*/
